package java8stream;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import org.apache.commons.lang3.tuple.Triple;
import com.github.javafaker.Faker;

public class Person {	
	public List<Triple<String, Integer, Integer>> getData(int num) {
		List<Triple<String, Integer, Integer>> list = new ArrayList<>();
		Faker faker = new Faker(new Locale("zh-CN"));;
		for(int i = 0; i < num; i++ ) {
			Triple<String, Integer, Integer> trip = Triple.of(faker.name().name(), faker.number().numberBetween(1, 100), faker.number().numberBetween(1, 4));
			list.add(trip);
		}
		 return list;
	}
}
